﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace Magicodes.Admin.Migrations
{
    public partial class routeUpdate2 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_SFQiaoStatusBacks",
                table: "SFQiaoStatusBacks");

            migrationBuilder.RenameTable(
                name: "SFQiaoStatusBacks",
                newName: "SFQiaoRouteStatusBacks");

            migrationBuilder.AddPrimaryKey(
                name: "PK_SFQiaoRouteStatusBacks",
                table: "SFQiaoRouteStatusBacks",
                column: "Id");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropPrimaryKey(
                name: "PK_SFQiaoRouteStatusBacks",
                table: "SFQiaoRouteStatusBacks");

            migrationBuilder.RenameTable(
                name: "SFQiaoRouteStatusBacks",
                newName: "SFQiaoStatusBacks");

            migrationBuilder.AddPrimaryKey(
                name: "PK_SFQiaoStatusBacks",
                table: "SFQiaoStatusBacks",
                column: "Id");
        }
    }
}
